package com.authine.cloudpivot.ext.service;

import com.alibaba.cola.dto.SingleResponse;
import com.authine.cloudpivot.ext.model.yunshu.AttachmentsUploadModel;
import com.authine.cloudpivot.ext.model.yunshu.YsResultModel;

import java.util.List;

/**
 * 调用云枢相关服务
 */
public interface YunShuService {

    /**
     * 推送采购订单到进销存
     * @param pushDataList
     * @return
     */
    SingleResponse<YsResultModel> pushOrderToInvoicing(String pushDataList);

    /**
     * 推送采购订单到进销存
     * @param traceIdList
     */
    void pushOrderToInvoicingListener(List<String> traceIdList);
    /**
     * 推送数据到氚云
     * @param pushDataList
     * @return
     */
    SingleResponse<YsResultModel> pushDataToYunShu(String pushDataList);
    /**
     * 推送附件到氚云
     * @param fileUpload
     * @return
     */
    YsResultModel pushAttachmentToYunShu(AttachmentsUploadModel fileUpload);
}
